package per.kongtouxu.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import per.kongtouxu.dao.RegInfoDao;
import per.kongtouxu.domain.pojo.RegInfo;
import per.kongtouxu.service.RegInfoService;
@Service
public class RegInfoServiceImpl implements RegInfoService {
    @Autowired
    private RegInfoDao regInfoDao;
    @Override
    public RegInfo findRegInfoById(Integer regId) {
        RegInfo reg = regInfoDao.findRegInfoById(regId);
        return reg;
    }

    @Override
    public Integer updateRegInfoById(Integer regId, Integer score) {
        Integer result = regInfoDao.updateRegInfoById(regId, score);
        return result;
    }
}
